package io.renren.modules.substation.dao;

import io.renren.modules.substation.entity.*;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 设备当前状态表
 * 
 * @author yzx
 * @email sunlightcs@gmail.com
 * @date 2020-06-20 11:20:38
 */
@Mapper
public interface TBusiDevStatusInfoDao extends BaseMapper<TBusiDevStatusInfoEntity> {



    long queryDevShowInfoListCount(TBusiDevStatusShowInfo tBusiDevStatusShowInfo);
    List<TBusiDevStatusShowInfo> queryDevShowInfoList(TBusiDevStatusShowInfo tBusiDevStatusShowInfo);

    List<DevDetailInfo> queryDevDetailInfoByCondition(DevDetailInfo devDetailInfo);

    int countAllDevNum();

    int countErrorDevNum();

    int updateByCode(TBusiDevStatusInfoEntity tBusiDevStatusInfoEntity);

    int countAllDevNumBySta(Map<String, Object> params);

    int countOfflineDevNumBySta(Map<String, Object> params);

    int updateDevStatusInfoByCode (TBusiDevStatusInfoEntity tBusiDevStatusInfoEntity);

    List<TBusiDevAutoReportInfo> queryPdAutoReportList(TBusiDevAutoReportInfo tBusiDevAutoReportInfo);

    List<TBusiDevAutoReportSumInfo> queryAutoReportSumList(TBusiDevAutoReportSumInfo tBusiDevAutoReportSumInfo);

    int countAllDevNumByArea(Map<String, Object> params);

    int countOfflineDevNumByArea(Map<String, Object> params);

    List<TBusiDevStatusInfoEntity> countAllDevNumGroup();

    List<TBusiDevStatusInfoEntity> countOfflineDevNumGroup();

    String getAreaChildList(Map<String, Object> params);
}
